import request from '@/utils/request'

// 查询房间列表列表
export function listHlroom(query) {
  return request({
    url: '/hotel/hlroom/list',
    method: 'get',
    params: query
  })
}

// 查询房间列表详细
export function getHlroom(id) {
  return request({
    url: '/hotel/hlroom/' + id,
    method: 'get'
  })
}

// 新增房间列表
export function addHlroom(data) {
  return request({
    url: '/hotel/hlroom',
    method: 'post',
    data: data
  })
}

// 修改房间列表
export function updateHlroom(data) {
  return request({
    url: '/hotel/hlroom',
    method: 'put',
    data: data
  })
}

// 删除房间列表
export function delHlroom(id) {
  return request({
    url: '/hotel/hlroom/' + id,
    method: 'delete'
  })
}
